package com.boesch.electroOffice.utils;

public class ConfigurationUtils {

	public static Boolean getRoleSubfunctionPreference(String role, String subfunction) {
		boolean returnValue = false;
		String checkedSubfunctions = PortletUtils.getPortletPreference(role + "Permissions", "");
		if(checkedSubfunctions.contains(subfunction)) {
			returnValue = true;
		}
		return returnValue;
	}
}
